{"ast":null,"code":"import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigConsumer } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { FormItemInputContext } from '../form/context';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport defaultLocale from '../locale/en_US';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { groupKeysMap, groupDisabledKeysMap } from '../_util/transKeys';\nimport warning from '../_util/warning';\nimport List from './list';\nimport Operation from './operation';\nimport Search from './search';\nimport useStyle from './style';\nconst TransferFC = props => {\n  const {\n    prefixCls\n  } = props;\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(props.className, hashId),\n    style: props.style\n  }, props.children));\n};\nlet Transfer = /*#__PURE__*/function (_React$Component) {\n  _inherits(Transfer, _React$Component);\n  var _super = _createSuper(Transfer);\n  function Transfer(props) {\n    var _this;\n    _classCallCheck(this, Transfer);\n    _this = _super.call(this, props);\n    _this.separatedDataSource = null;\n    _this.setStateKeys = (direction, keys) => {\n      if (direction === 'left') {\n        _this.setState(_ref => {\n          let {\n            sourceSelectedKeys\n          } = _ref;\n          return {\n            sourceSelectedKeys: typeof keys === 'function' ? keys(sourceSelectedKeys || []) : keys\n          };\n        });\n      } else {\n        _this.setState(_ref2 => {\n          let {\n            targetSelectedKeys\n          } = _ref2;\n          return {\n            targetSelectedKeys: typeof keys === 'function' ? keys(targetSelectedKeys || []) : keys\n          };\n        });\n      }\n    };\n    _this.getLocale = (transferLocale, renderEmpty) => {\n      const {\n        locale = {}\n      } = _this.props;\n      return Object.assign(Object.assign(Object.assign({}, transferLocale), {\n        notFoundContent: renderEmpty('Transfer')\n      }), locale);\n    };\n    _this.moveTo = direction => {\n      const {\n        targetKeys = [],\n        dataSource = [],\n        onChange\n      } = _this.props;\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;\n      const dataSourceDisabledKeysMap = groupDisabledKeysMap(dataSource);\n      // filter the disabled options\n      const newMoveKeys = moveKeys.filter(key => !dataSourceDisabledKeysMap.has(key));\n      const newMoveKeysMap = groupKeysMap(newMoveKeys);\n      // move items to target box\n      const newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(targetKey => !newMoveKeysMap.has(targetKey));\n      // empty checked keys\n      const oppositeDirection = direction === 'right' ? 'left' : 'right';\n      _this.setStateKeys(oppositeDirection, []);\n      _this.handleSelectChange(oppositeDirection, []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(newTargetKeys, direction, newMoveKeys);\n    };\n    _this.moveToLeft = () => _this.moveTo('left');\n    _this.moveToRight = () => _this.moveTo('right');\n    _this.onItemSelectAll = (direction, selectedKeys, checkAll) => {\n      _this.setStateKeys(direction, prevKeys => {\n        let mergedCheckedKeys = [];\n        if (checkAll) {\n          // Merge current keys with origin key\n          mergedCheckedKeys = Array.from(new Set([].concat(_toConsumableArray(prevKeys), _toConsumableArray(selectedKeys))));\n        } else {\n          const selectedKeysMap = groupKeysMap(selectedKeys);\n          // Remove current keys from origin keys\n          mergedCheckedKeys = prevKeys.filter(key => !selectedKeysMap.has(key));\n        }\n        _this.handleSelectChange(direction, mergedCheckedKeys);\n        return mergedCheckedKeys;\n      });\n    };\n    _this.onLeftItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('left', selectedKeys, checkAll);\n    _this.onRightItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('right', selectedKeys, checkAll);\n    _this.handleFilter = (direction, e) => {\n      const {\n        onSearch\n      } = _this.props;\n      const {\n        value\n      } = e.target;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, value);\n    };\n    _this.handleLeftFilter = e => _this.handleFilter('left', e);\n    _this.handleRightFilter = e => _this.handleFilter('right', e);\n    _this.handleClear = direction => {\n      const {\n        onSearch\n      } = _this.props;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, '');\n    };\n    _this.handleLeftClear = () => _this.handleClear('left');\n    _this.handleRightClear = () => _this.handleClear('right');\n    _this.onItemSelect = (direction, selectedKey, checked) => {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const holder = direction === 'left' ? _toConsumableArray(sourceSelectedKeys) : _toConsumableArray(targetSelectedKeys);\n      const index = holder.indexOf(selectedKey);\n      if (index > -1) {\n        holder.splice(index, 1);\n      }\n      if (checked) {\n        holder.push(selectedKey);\n      }\n      _this.handleSelectChange(direction, holder);\n      if (!_this.props.selectedKeys) {\n        _this.setStateKeys(direction, holder);\n      }\n    };\n    _this.onLeftItemSelect = (selectedKey, checked) => _this.onItemSelect('left', selectedKey, checked);\n    _this.onRightItemSelect = (selectedKey, checked) => _this.onItemSelect('right', selectedKey, checked);\n    _this.onRightItemRemove = selectedKeys => {\n      const {\n        targetKeys = [],\n        onChange\n      } = _this.props;\n      _this.setStateKeys('right', []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(targetKeys.filter(key => !selectedKeys.includes(key)), 'left', _toConsumableArray(selectedKeys));\n    };\n    _this.handleScroll = (direction, e) => {\n      const {\n        onScroll\n      } = _this.props;\n      onScroll === null || onScroll === void 0 ? void 0 : onScroll(direction, e);\n    };\n    _this.handleLeftScroll = e => _this.handleScroll('left', e);\n    _this.handleRightScroll = e => _this.handleScroll('right', e);\n    // eslint-disable-next-line class-methods-use-this\n    _this.handleListStyle = (listStyle, direction) => {\n      if (typeof listStyle === 'function') {\n        return listStyle({\n          direction\n        });\n      }\n      return listStyle;\n    };\n    const {\n      selectedKeys = [],\n      targetKeys = []\n    } = props;\n    _this.state = {\n      sourceSelectedKeys: selectedKeys.filter(key => !targetKeys.includes(key)),\n      targetSelectedKeys: selectedKeys.filter(key => targetKeys.includes(key))\n    };\n    return _this;\n  }\n  _createClass(Transfer, [{\n    key: \"getTitles\",\n    value: function getTitles(transferLocale) {\n      var _a, _b;\n      return (_b = (_a = this.props.titles) !== null && _a !== void 0 ? _a : transferLocale.titles) !== null && _b !== void 0 ? _b : [];\n    }\n  }, {\n    key: \"handleSelectChange\",\n    value: function handleSelectChange(direction, holder) {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = this.state;\n      const {\n        onSelectChange\n      } = this.props;\n      if (!onSelectChange) {\n        return;\n      }\n      if (direction === 'left') {\n        onSelectChange(holder, targetSelectedKeys);\n      } else {\n        onSelectChange(sourceSelectedKeys, holder);\n      }\n    }\n  }, {\n    key: \"separateDataSource\",\n    value: function separateDataSource() {\n      const {\n        dataSource = [],\n        rowKey,\n        targetKeys = []\n      } = this.props;\n      const leftDataSource = [];\n      const rightDataSource = new Array(targetKeys.length);\n      const targetKeysMap = groupKeysMap(targetKeys);\n      dataSource.forEach(record => {\n        if (rowKey) {\n          record = Object.assign(Object.assign({}, record), {\n            key: rowKey(record)\n          });\n        }\n        // rightDataSource should be ordered by targetKeys\n        // leftDataSource should be ordered by dataSource\n        if (targetKeysMap.has(record.key)) {\n          rightDataSource[targetKeysMap.get(record.key)] = record;\n        } else {\n          leftDataSource.push(record);\n        }\n      });\n      return {\n        leftDataSource,\n        rightDataSource\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/React.createElement(LocaleReceiver, {\n        componentName: \"Transfer\",\n        defaultLocale: defaultLocale.Transfer\n      }, contextLocale => /*#__PURE__*/React.createElement(ConfigConsumer, null, _ref3 => {\n        let {\n          getPrefixCls,\n          renderEmpty,\n          direction\n        } = _ref3;\n        return /*#__PURE__*/React.createElement(FormItemInputContext.Consumer, null, _ref4 => {\n          let {\n            hasFeedback,\n            status: contextStatus\n          } = _ref4;\n          const {\n            prefixCls: customizePrefixCls,\n            className,\n            disabled,\n            operations = [],\n            showSearch = false,\n            footer,\n            style,\n            listStyle = {},\n            operationStyle,\n            filterOption,\n            render,\n            children,\n            showSelectAll,\n            oneWay,\n            pagination,\n            status: customStatus\n          } = this.props;\n          const prefixCls = getPrefixCls('transfer', customizePrefixCls);\n          const locale = this.getLocale(contextLocale, renderEmpty || defaultRenderEmpty);\n          const {\n            sourceSelectedKeys,\n            targetSelectedKeys\n          } = this.state;\n          const mergedStatus = getMergedStatus(contextStatus, customStatus);\n          const mergedPagination = !children && pagination;\n          const {\n            leftDataSource,\n            rightDataSource\n          } = this.separateDataSource();\n          const leftActive = targetSelectedKeys.length > 0;\n          const rightActive = sourceSelectedKeys.length > 0;\n          const cls = classNames(prefixCls, {\n            [`${prefixCls}-disabled`]: disabled,\n            [`${prefixCls}-customize-list`]: !!children,\n            [`${prefixCls}-rtl`]: direction === 'rtl'\n          }, getStatusClassNames(prefixCls, mergedStatus, hasFeedback), className);\n          const titles = this.getTitles(locale);\n          const selectAllLabels = this.props.selectAllLabels || [];\n          return /*#__PURE__*/React.createElement(TransferFC, {\n            prefixCls: prefixCls,\n            className: cls,\n            style: style\n          }, /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[0],\n            dataSource: leftDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'left'),\n            checkedKeys: sourceSelectedKeys,\n            handleFilter: this.handleLeftFilter,\n            handleClear: this.handleLeftClear,\n            onItemSelect: this.onLeftItemSelect,\n            onItemSelectAll: this.onLeftItemSelectAll,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleLeftScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'right' : 'left',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[0],\n            pagination: mergedPagination\n          }, locale)), /*#__PURE__*/React.createElement(Operation, {\n            className: `${prefixCls}-operation`,\n            rightActive: rightActive,\n            rightArrowText: operations[0],\n            moveToRight: this.moveToRight,\n            leftActive: leftActive,\n            leftArrowText: operations[1],\n            moveToLeft: this.moveToLeft,\n            style: operationStyle,\n            disabled: disabled,\n            direction: direction,\n            oneWay: oneWay\n          }), /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[1],\n            dataSource: rightDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'right'),\n            checkedKeys: targetSelectedKeys,\n            handleFilter: this.handleRightFilter,\n            handleClear: this.handleRightClear,\n            onItemSelect: this.onRightItemSelect,\n            onItemSelectAll: this.onRightItemSelectAll,\n            onItemRemove: this.onRightItemRemove,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleRightScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'left' : 'right',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[1],\n            showRemove: oneWay,\n            pagination: mergedPagination\n          }, locale)));\n        });\n      }));\n    }\n  }], [{\n    key: \"getDerivedStateFromProps\",\n    value: function getDerivedStateFromProps(_ref5) {\n      let {\n        selectedKeys,\n        targetKeys,\n        pagination,\n        children\n      } = _ref5;\n      if (selectedKeys) {\n        const mergedTargetKeys = targetKeys || [];\n        return {\n          sourceSelectedKeys: selectedKeys.filter(key => !mergedTargetKeys.includes(key)),\n          targetSelectedKeys: selectedKeys.filter(key => mergedTargetKeys.includes(key))\n        };\n      }\n      process.env.NODE_ENV !== \"production\" ? warning(!pagination || !children, 'Transfer', '`pagination` not support customize render list.') : void 0;\n      return null;\n    }\n  }]);\n  return Transfer;\n}(React.Component); // For high-level customized Transfer @dqaria\nTransfer.List = List;\nTransfer.Operation = Operation;\nTransfer.Search = Search;\nexport default Transfer;","map":{"version":3,"names":["_toConsumableArray","_classCallCheck","_createClass","_inherits","_createSuper","classNames","React","ConfigConsumer","defaultRenderEmpty","FormItemInputContext","LocaleReceiver","defaultLocale","getMergedStatus","getStatusClassNames","groupKeysMap","groupDisabledKeysMap","warning","List","Operation","Search","useStyle","TransferFC","props","prefixCls","wrapSSR","hashId","createElement","className","style","children","Transfer","_React$Component","_super","_this","call","separatedDataSource","setStateKeys","direction","keys","setState","_ref","sourceSelectedKeys","_ref2","targetSelectedKeys","getLocale","transferLocale","renderEmpty","locale","Object","assign","notFoundContent","moveTo","targetKeys","dataSource","onChange","state","moveKeys","dataSourceDisabledKeysMap","newMoveKeys","filter","key","has","newMoveKeysMap","newTargetKeys","concat","targetKey","oppositeDirection","handleSelectChange","moveToLeft","moveToRight","onItemSelectAll","selectedKeys","checkAll","prevKeys","mergedCheckedKeys","Array","from","Set","selectedKeysMap","onLeftItemSelectAll","onRightItemSelectAll","handleFilter","e","onSearch","value","target","handleLeftFilter","handleRightFilter","handleClear","handleLeftClear","handleRightClear","onItemSelect","selectedKey","checked","holder","index","indexOf","splice","push","onLeftItemSelect","onRightItemSelect","onRightItemRemove","includes","handleScroll","onScroll","handleLeftScroll","handleRightScroll","handleListStyle","listStyle","getTitles","_a","_b","titles","onSelectChange","separateDataSource","rowKey","leftDataSource","rightDataSource","length","targetKeysMap","forEach","record","get","render","componentName","contextLocale","_ref3","getPrefixCls","Consumer","_ref4","hasFeedback","status","contextStatus","customizePrefixCls","disabled","operations","showSearch","footer","operationStyle","filterOption","showSelectAll","oneWay","pagination","customStatus","mergedStatus","mergedPagination","leftActive","rightActive","cls","selectAllLabels","titleText","checkedKeys","renderList","selectAllLabel","rightArrowText","leftArrowText","onItemRemove","showRemove","getDerivedStateFromProps","_ref5","mergedTargetKeys","process","env","NODE_ENV","Component"],"sources":["/data/messenger.client/node_modules/antd/es/transfer/index.js"],"sourcesContent":["import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _classCallCheck from \"@babel/runtime/helpers/esm/classCallCheck\";\nimport _createClass from \"@babel/runtime/helpers/esm/createClass\";\nimport _inherits from \"@babel/runtime/helpers/esm/inherits\";\nimport _createSuper from \"@babel/runtime/helpers/esm/createSuper\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigConsumer } from '../config-provider';\nimport defaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport { FormItemInputContext } from '../form/context';\nimport LocaleReceiver from '../locale/LocaleReceiver';\nimport defaultLocale from '../locale/en_US';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { groupKeysMap, groupDisabledKeysMap } from '../_util/transKeys';\nimport warning from '../_util/warning';\nimport List from './list';\nimport Operation from './operation';\nimport Search from './search';\nimport useStyle from './style';\nconst TransferFC = props => {\n  const {\n    prefixCls\n  } = props;\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: classNames(props.className, hashId),\n    style: props.style\n  }, props.children));\n};\nlet Transfer = /*#__PURE__*/function (_React$Component) {\n  _inherits(Transfer, _React$Component);\n  var _super = _createSuper(Transfer);\n  function Transfer(props) {\n    var _this;\n    _classCallCheck(this, Transfer);\n    _this = _super.call(this, props);\n    _this.separatedDataSource = null;\n    _this.setStateKeys = (direction, keys) => {\n      if (direction === 'left') {\n        _this.setState(_ref => {\n          let {\n            sourceSelectedKeys\n          } = _ref;\n          return {\n            sourceSelectedKeys: typeof keys === 'function' ? keys(sourceSelectedKeys || []) : keys\n          };\n        });\n      } else {\n        _this.setState(_ref2 => {\n          let {\n            targetSelectedKeys\n          } = _ref2;\n          return {\n            targetSelectedKeys: typeof keys === 'function' ? keys(targetSelectedKeys || []) : keys\n          };\n        });\n      }\n    };\n    _this.getLocale = (transferLocale, renderEmpty) => {\n      const {\n        locale = {}\n      } = _this.props;\n      return Object.assign(Object.assign(Object.assign({}, transferLocale), {\n        notFoundContent: renderEmpty('Transfer')\n      }), locale);\n    };\n    _this.moveTo = direction => {\n      const {\n        targetKeys = [],\n        dataSource = [],\n        onChange\n      } = _this.props;\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const moveKeys = direction === 'right' ? sourceSelectedKeys : targetSelectedKeys;\n      const dataSourceDisabledKeysMap = groupDisabledKeysMap(dataSource);\n      // filter the disabled options\n      const newMoveKeys = moveKeys.filter(key => !dataSourceDisabledKeysMap.has(key));\n      const newMoveKeysMap = groupKeysMap(newMoveKeys);\n      // move items to target box\n      const newTargetKeys = direction === 'right' ? newMoveKeys.concat(targetKeys) : targetKeys.filter(targetKey => !newMoveKeysMap.has(targetKey));\n      // empty checked keys\n      const oppositeDirection = direction === 'right' ? 'left' : 'right';\n      _this.setStateKeys(oppositeDirection, []);\n      _this.handleSelectChange(oppositeDirection, []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(newTargetKeys, direction, newMoveKeys);\n    };\n    _this.moveToLeft = () => _this.moveTo('left');\n    _this.moveToRight = () => _this.moveTo('right');\n    _this.onItemSelectAll = (direction, selectedKeys, checkAll) => {\n      _this.setStateKeys(direction, prevKeys => {\n        let mergedCheckedKeys = [];\n        if (checkAll) {\n          // Merge current keys with origin key\n          mergedCheckedKeys = Array.from(new Set([].concat(_toConsumableArray(prevKeys), _toConsumableArray(selectedKeys))));\n        } else {\n          const selectedKeysMap = groupKeysMap(selectedKeys);\n          // Remove current keys from origin keys\n          mergedCheckedKeys = prevKeys.filter(key => !selectedKeysMap.has(key));\n        }\n        _this.handleSelectChange(direction, mergedCheckedKeys);\n        return mergedCheckedKeys;\n      });\n    };\n    _this.onLeftItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('left', selectedKeys, checkAll);\n    _this.onRightItemSelectAll = (selectedKeys, checkAll) => _this.onItemSelectAll('right', selectedKeys, checkAll);\n    _this.handleFilter = (direction, e) => {\n      const {\n        onSearch\n      } = _this.props;\n      const {\n        value\n      } = e.target;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, value);\n    };\n    _this.handleLeftFilter = e => _this.handleFilter('left', e);\n    _this.handleRightFilter = e => _this.handleFilter('right', e);\n    _this.handleClear = direction => {\n      const {\n        onSearch\n      } = _this.props;\n      onSearch === null || onSearch === void 0 ? void 0 : onSearch(direction, '');\n    };\n    _this.handleLeftClear = () => _this.handleClear('left');\n    _this.handleRightClear = () => _this.handleClear('right');\n    _this.onItemSelect = (direction, selectedKey, checked) => {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = _this.state;\n      const holder = direction === 'left' ? _toConsumableArray(sourceSelectedKeys) : _toConsumableArray(targetSelectedKeys);\n      const index = holder.indexOf(selectedKey);\n      if (index > -1) {\n        holder.splice(index, 1);\n      }\n      if (checked) {\n        holder.push(selectedKey);\n      }\n      _this.handleSelectChange(direction, holder);\n      if (!_this.props.selectedKeys) {\n        _this.setStateKeys(direction, holder);\n      }\n    };\n    _this.onLeftItemSelect = (selectedKey, checked) => _this.onItemSelect('left', selectedKey, checked);\n    _this.onRightItemSelect = (selectedKey, checked) => _this.onItemSelect('right', selectedKey, checked);\n    _this.onRightItemRemove = selectedKeys => {\n      const {\n        targetKeys = [],\n        onChange\n      } = _this.props;\n      _this.setStateKeys('right', []);\n      onChange === null || onChange === void 0 ? void 0 : onChange(targetKeys.filter(key => !selectedKeys.includes(key)), 'left', _toConsumableArray(selectedKeys));\n    };\n    _this.handleScroll = (direction, e) => {\n      const {\n        onScroll\n      } = _this.props;\n      onScroll === null || onScroll === void 0 ? void 0 : onScroll(direction, e);\n    };\n    _this.handleLeftScroll = e => _this.handleScroll('left', e);\n    _this.handleRightScroll = e => _this.handleScroll('right', e);\n    // eslint-disable-next-line class-methods-use-this\n    _this.handleListStyle = (listStyle, direction) => {\n      if (typeof listStyle === 'function') {\n        return listStyle({\n          direction\n        });\n      }\n      return listStyle;\n    };\n    const {\n      selectedKeys = [],\n      targetKeys = []\n    } = props;\n    _this.state = {\n      sourceSelectedKeys: selectedKeys.filter(key => !targetKeys.includes(key)),\n      targetSelectedKeys: selectedKeys.filter(key => targetKeys.includes(key))\n    };\n    return _this;\n  }\n  _createClass(Transfer, [{\n    key: \"getTitles\",\n    value: function getTitles(transferLocale) {\n      var _a, _b;\n      return (_b = (_a = this.props.titles) !== null && _a !== void 0 ? _a : transferLocale.titles) !== null && _b !== void 0 ? _b : [];\n    }\n  }, {\n    key: \"handleSelectChange\",\n    value: function handleSelectChange(direction, holder) {\n      const {\n        sourceSelectedKeys,\n        targetSelectedKeys\n      } = this.state;\n      const {\n        onSelectChange\n      } = this.props;\n      if (!onSelectChange) {\n        return;\n      }\n      if (direction === 'left') {\n        onSelectChange(holder, targetSelectedKeys);\n      } else {\n        onSelectChange(sourceSelectedKeys, holder);\n      }\n    }\n  }, {\n    key: \"separateDataSource\",\n    value: function separateDataSource() {\n      const {\n        dataSource = [],\n        rowKey,\n        targetKeys = []\n      } = this.props;\n      const leftDataSource = [];\n      const rightDataSource = new Array(targetKeys.length);\n      const targetKeysMap = groupKeysMap(targetKeys);\n      dataSource.forEach(record => {\n        if (rowKey) {\n          record = Object.assign(Object.assign({}, record), {\n            key: rowKey(record)\n          });\n        }\n        // rightDataSource should be ordered by targetKeys\n        // leftDataSource should be ordered by dataSource\n        if (targetKeysMap.has(record.key)) {\n          rightDataSource[targetKeysMap.get(record.key)] = record;\n        } else {\n          leftDataSource.push(record);\n        }\n      });\n      return {\n        leftDataSource,\n        rightDataSource\n      };\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/React.createElement(LocaleReceiver, {\n        componentName: \"Transfer\",\n        defaultLocale: defaultLocale.Transfer\n      }, contextLocale => /*#__PURE__*/React.createElement(ConfigConsumer, null, _ref3 => {\n        let {\n          getPrefixCls,\n          renderEmpty,\n          direction\n        } = _ref3;\n        return /*#__PURE__*/React.createElement(FormItemInputContext.Consumer, null, _ref4 => {\n          let {\n            hasFeedback,\n            status: contextStatus\n          } = _ref4;\n          const {\n            prefixCls: customizePrefixCls,\n            className,\n            disabled,\n            operations = [],\n            showSearch = false,\n            footer,\n            style,\n            listStyle = {},\n            operationStyle,\n            filterOption,\n            render,\n            children,\n            showSelectAll,\n            oneWay,\n            pagination,\n            status: customStatus\n          } = this.props;\n          const prefixCls = getPrefixCls('transfer', customizePrefixCls);\n          const locale = this.getLocale(contextLocale, renderEmpty || defaultRenderEmpty);\n          const {\n            sourceSelectedKeys,\n            targetSelectedKeys\n          } = this.state;\n          const mergedStatus = getMergedStatus(contextStatus, customStatus);\n          const mergedPagination = !children && pagination;\n          const {\n            leftDataSource,\n            rightDataSource\n          } = this.separateDataSource();\n          const leftActive = targetSelectedKeys.length > 0;\n          const rightActive = sourceSelectedKeys.length > 0;\n          const cls = classNames(prefixCls, {\n            [`${prefixCls}-disabled`]: disabled,\n            [`${prefixCls}-customize-list`]: !!children,\n            [`${prefixCls}-rtl`]: direction === 'rtl'\n          }, getStatusClassNames(prefixCls, mergedStatus, hasFeedback), className);\n          const titles = this.getTitles(locale);\n          const selectAllLabels = this.props.selectAllLabels || [];\n          return /*#__PURE__*/React.createElement(TransferFC, {\n            prefixCls: prefixCls,\n            className: cls,\n            style: style\n          }, /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[0],\n            dataSource: leftDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'left'),\n            checkedKeys: sourceSelectedKeys,\n            handleFilter: this.handleLeftFilter,\n            handleClear: this.handleLeftClear,\n            onItemSelect: this.onLeftItemSelect,\n            onItemSelectAll: this.onLeftItemSelectAll,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleLeftScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'right' : 'left',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[0],\n            pagination: mergedPagination\n          }, locale)), /*#__PURE__*/React.createElement(Operation, {\n            className: `${prefixCls}-operation`,\n            rightActive: rightActive,\n            rightArrowText: operations[0],\n            moveToRight: this.moveToRight,\n            leftActive: leftActive,\n            leftArrowText: operations[1],\n            moveToLeft: this.moveToLeft,\n            style: operationStyle,\n            disabled: disabled,\n            direction: direction,\n            oneWay: oneWay\n          }), /*#__PURE__*/React.createElement(List, Object.assign({\n            prefixCls: `${prefixCls}-list`,\n            titleText: titles === null || titles === void 0 ? void 0 : titles[1],\n            dataSource: rightDataSource,\n            filterOption: filterOption,\n            style: this.handleListStyle(listStyle, 'right'),\n            checkedKeys: targetSelectedKeys,\n            handleFilter: this.handleRightFilter,\n            handleClear: this.handleRightClear,\n            onItemSelect: this.onRightItemSelect,\n            onItemSelectAll: this.onRightItemSelectAll,\n            onItemRemove: this.onRightItemRemove,\n            render: render,\n            showSearch: showSearch,\n            renderList: children,\n            footer: footer,\n            onScroll: this.handleRightScroll,\n            disabled: disabled,\n            direction: direction === 'rtl' ? 'left' : 'right',\n            showSelectAll: showSelectAll,\n            selectAllLabel: selectAllLabels[1],\n            showRemove: oneWay,\n            pagination: mergedPagination\n          }, locale)));\n        });\n      }));\n    }\n  }], [{\n    key: \"getDerivedStateFromProps\",\n    value: function getDerivedStateFromProps(_ref5) {\n      let {\n        selectedKeys,\n        targetKeys,\n        pagination,\n        children\n      } = _ref5;\n      if (selectedKeys) {\n        const mergedTargetKeys = targetKeys || [];\n        return {\n          sourceSelectedKeys: selectedKeys.filter(key => !mergedTargetKeys.includes(key)),\n          targetSelectedKeys: selectedKeys.filter(key => mergedTargetKeys.includes(key))\n        };\n      }\n      process.env.NODE_ENV !== \"production\" ? warning(!pagination || !children, 'Transfer', '`pagination` not support customize render list.') : void 0;\n      return null;\n    }\n  }]);\n  return Transfer;\n}(React.Component); // For high-level customized Transfer @dqaria\nTransfer.List = List;\nTransfer.Operation = Operation;\nTransfer.Search = Search;\nexport default Transfer;"],"mappings":"AAAA,OAAOA,kBAAkB,MAAM,8CAA8C;AAC7E,OAAOC,eAAe,MAAM,2CAA2C;AAC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